<template>
  <div class="epidemic">
    <table>
      <tr>
        <td>
          <div class="content">
            <span class="title">疑似病例</span>
          </div>
        </td>
        <td>
          <div class="content">
            <span class="title">确诊病例</span>
          </div>
        </td>
        <td>
          <div class="content">
            <span class="title">治愈病例</span>
          </div>
        </td>
        <td>
          <div class="content">
            <span class="title">死亡病例</span>
          </div>
        </td>
      </tr>
      <tr>
        <td>
          <div class="content">
            <span class="num">{{milliFormat(yqfkAll.ysbl)}}</span>
            <span class="units">人</span>
          </div>
        </td>
        <td>
          <div class="content">
            <span class="num">{{milliFormat(yqfkAll.qzbl)}}</span>
            <span class="units">人</span>
          </div>
        </td>
        <td>
          <div class="content">
            <span class="num">{{milliFormat(yqfkAll.zybl)}}</span>
            <span class="units">人</span>
          </div>
        </td>
        <td>
          <div class="content">
            <span class="num">{{milliFormat(yqfkAll.swbl)}}</span>
            <span class="units">人</span>
          </div>
        </td>
      </tr>
    </table>
    <div class="epidemic__bottom">
      <table>
        <tr class="content">
          <td class="item">
            <span>昨日进出人数</span>
          </td>
          <td><span class="num">{{milliFormat(yqfkAll.jrjcrs)}}</span>人</td>
          <td class="item">
            <span>昨日测温数</span>
          </td>
          <td><span class="num">{{milliFormat(yqfkAll.jrcwls)}}</span>次</td>
        </tr>
        <tr class="content">
          <td class="item">
            <span>{{month}}月进出人数</span>
          </td>
          <td><span class="num">{{milliFormat(yqfkAll.byjcrs)}}</span>人</td>
          <td class="item">
            <span>{{month}}月测温数</span>
          </td>
          <td><span class="num">{{milliFormat(yqfkAll.bycwsl)}}</span>次</td>
        </tr>
      </table>
    </div>
  </div>
</template>

<script>
import { milliFormat } from 'js/utils'
export default {
  props: {
   yqfkAll: {
     type: Object,
     default: ()=>{}
   },
  month: {
    type: String,
    default: ''
  }
  },
  data () {
    return {
      
    }
  },
  methods: {
    milliFormat(num) {
      return milliFormat(num)
    },
  }
}
</script>

<style lang="scss">
.epidemic{
  height: 100%;
  padding: 10px 20px 5px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  table {
    tr {
      display: flex;
      td {
        flex: 1;
        border: 1px solid #1C639B;
        color:rgba(124,161,210,1);
        
      }
    }
    .content {
      display: flex;
      // flex-direction: column;
      justify-content: center;
      // align-items: center;
      // padding: 10px 20px;
      height: 30px;
      line-height: 30px;
    }
    .title {
      font-size:13px;
      font-family:Microsoft YaHei;
      // font-weight:600;
      // padding-bottom: 5px;
      text-align: center;
    }
    .num {
      font-size:20px;
      font-family:FZZhunYuan-M02S;
      font-weight:600;
      color:#FFEA00;
      // padding: 5px 0 2px;
      padding-right: 10px;
    }
    .units {
      font-size:10px;
      color: #fff;
      line-height: 35px;
    }
  }
  &__bottom {
    display: flex;
    flex-direction: column;
    padding-top: 5px;
    table {
      tr {
        display: flex;
        td {
          border: 0;
          color:rgba(124,161,210,1);
          font-size:12px;
          text-align: center;
        }
      }
      .content {
        line-height: 20px;
        height: 20px;
        .item {
          font-size: 12px;
          color: #7CA1D2;
        }
        .num {
          font-size:12px;
          font-family:PingFang SC;
          font-weight:500;
          color:#fff;
        }
      }
    }
  }
}
</style>>
